package com.carhailing.system.controller;

import com.carhailing.common.domain.coupons.CouponUseRecord;
import com.carhailing.common.domain.response.SysUserDto;
import com.carhailing.common.result.Result;
import com.carhailing.common.utils.JwtUtils;
import com.carhailing.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author：作者姓名
 * @Package：com.mj.system.controller
 * @Project：g5_zuoye14
 * @name：System
 * @Date：2024/5/9 17:21
 */
@RestController
@RequestMapping("/systemUser")
public class SystemController {
    @Autowired
    private SystemService systemService;
    @Autowired
    private HttpServletRequest request;

    @GetMapping("getcode")
    public Result<SysUserDto> getcode(@RequestParam String userphone){
        Result<SysUserDto> userResult= systemService.getcode(userphone);
        return userResult;
    }





}
